<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // filter 将满足条件的数组元素收集到一个新数组中
      // map 将函数体内的每一次遍历比较的结果收集到数组中
      // some 
      // every
      // reduce 
      // find 
      // findIndex
      const arr = [1, 2, 3, 10, 20, 30, 80];
      const res = arr.filter((item) => {
        return item > 10
      });
      console.log(res);
    </script>
  </body>
</html>
